import { RequestData, POST } from '@/utils/request-data';

const requestData = Object.create(RequestData);
requestData.setBaseUrl('/erp/dealer');

// 文章
export const registerPage = params => requestData.base('/passport/register', POST, params);
export const articlePage = params => requestData.base('/article/page', POST, params);
export const articleRead = id => requestData.base(`/article/read/${id}`, POST);
export const helpPage = params => requestData.base('/article/page', POST, params);
export const helpCategoryList = params => requestData.base('/article/category/list', POST, params);
export const articleHelpHot = params => requestData.base('/article/hot', POST, params);
export const articleHelpMust = params => requestData.base('/article/must', POST, params);
export const articleHelpLatest = params => requestData.base('/article/latest', POST, params);
export const articleHelpRecommend = params => requestData.base('/article/recommend', POST, params);

export const articleTextLatest = params => requestData.base('/article/text/latest', POST, params);
export const articleVedioTutorialRecommend = params => requestData.base('/article/vedio_tutorial/recommend', POST, params);
export const articleTextTutorialRecommend = params => requestData.base('/article/text_tutorial/recommend', POST, params);
export const articleTextTutorialHot = params => requestData.base('/article/text_tutorial/hot', POST, params);
export const articleTextTutorialMust = params => requestData.base('/article/text_tutorial/must', POST, params);
export const articleTextTutorialLatest = params => requestData.base('/article/text_tutorial/latest', POST, params);

